[POWERPC][XEN][LIBXC] Make xc_linux_build() use populate_physmap()
authorHollis Blanchard <hollisb@us.ibm.com>
Fri, 2 Mar 2007 23:08:04 +0000 (17:08 -0600)
committerHollis Blanchard <hollisb@us.ibm.com>
Fri, 2 Mar 2007 23:08:04 +0000 (17:08 -0600)
commit09e98378cf70ec51a0312adc8cdfc18f87b542ba
treeb920554d239ad5c30e2d3229197878e43b43b393
parenta046da3892999d0da1d08bd82873c1aac53bb427
[POWERPC][XEN][LIBXC] Make xc_linux_build() use populate_physmap()
- populate_physmap() is the only way to invoke
  guest_physmap_{add/remove}_page(), which populate our new p2m table.
- To use it, we must to specify an array of PFNs where the new MFNs will be
  mapped.
- Split out alloc_memory() from xc_linux_build().
- Fix memory free path in xc_linux_build().
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %9F%E6%FE%88%A6%A1%A2%88l%24%F2%AFvMf%3C%05%AF%DAU
tools/libxc/powerpc64/xc_linux_build.c